package cn.wk.demo;

import java.util.HashSet;
import java.util.Iterator;

public class HashSetDemo {

	public static void main(String[] args) {
		
		HashSet hs = new HashSet();
		hs.add("haha");
		hs.add("hehe");
		hs.add("heihei");
		hs.add("haha");
		hs.add("xixi");
		
		Iterator it = hs.iterator();
		while(it.hasNext()){
			String value = (String) it.next();
			System.out.println(value);
		}

	}

}
